inspector: Go to the desired tab
authorMatthias Clasen <mclasen@redhat.com>
Wed, 4 Jun 2014 23:28:24 +0000 (19:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 4 Jun 2014 23:28:24 +0000 (19:28 -0400)
We were setting the next-tab properly, but were trying to
read it off the wrong object. Now, going from a cell renderer
attribute mapping to the model, or from an action-name to the
action actually works.

gtk/inspector/window.c

index cc3b36a5036f63c3126630c60754e9f72d27a33f..a4dc657d49483d58bf1228961977260dbcfb87a3 100644 (file)
@@ -81,7 +81,7 @@ on_widget_tree_selection_changed (GtkInspectorWidgetTree *wt,
   gtk_inspector_gestures_set_object (GTK_INSPECTOR_GESTURES (iw->gestures), selected);
 
   notebook = gtk_widget_get_parent (iw->prop_list);
-  tab = g_object_get_data (G_OBJECT (iw), "next-tab");
+  tab = g_object_get_data (G_OBJECT (wt), "next-tab");
   if (g_strcmp0 (tab, "properties") == 0)
     {
       page_num = gtk_notebook_page_num (GTK_NOTEBOOK (notebook), iw->prop_list);